#pragma once
/*
 * now time instance.
 * you can use GetNowTime() to get the current time.
 */

#include "singleton.h"

class CNowTime final {
protected:
    DECLARE_SINGLETON(CNowTime);
    CNowTime() : m_ts(0) {}
    ~CNowTime() {}

public:
    void SetNowTime(long long ts) {
        m_ts = ts;
    }
    long long GetNowTime() {
        return m_ts;
    }

private:
    long long m_ts;
};
